package com.atguigu.spzx.order.mapper;

import com.atguigu.spyx.model.common.com.atguigu.spyx.model.entity.order.OrderInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author LT
 * @create 2023-11-21-20:53
 */
@Mapper
public interface OrderInfoMapper {

    void save(OrderInfo orderInfo);

    OrderInfo findOrderById(Long orderId);

    List<OrderInfo> orderPage(@Param("userId") Long userId,@Param("orderStatus") Integer orderStatus);

    OrderInfo findOrderByNo(Long orderNo);

    void updatePayStatus(@Param("orderNo")Long orderNo ,@Param("payType")Long payType ,@Param("payStatus")Long payStatus);

}
